<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <title>公信商城－添加商品</title>

    <!--图标字体 http://fontawesome.io/icons/ -->
    <link rel="stylesheet" href="css/font/css/font-awesome.min.css" />
    <link rel="stylesheet" href="css/ui-base.css"/>
    <link rel="stylesheet" href="css/main.css"/>
    <script src="js/jquery.min.js"></script>
    <!--<script src="js/loaderMask.js"></script>-->

    <!--icheck组件-->
    <link href="js/icheck-1.x/skins/flat/blue.css" rel="stylesheet">
    <script src="js/icheck-1.x/icheck.min.js"></script>
</head>
<body>
    <header class="header">
        <span class="title">添加商品</span>
        <a class="l-btn l-back" href="javascript: window.history.go(-1);"></a>
        <a class="r-btn" href="myStore-goods.html">完成</a>
    </header>
    <div class="content w100 ho">
        <div class="content-login ho">
            <div class="input-label bor-b">
                <label>商品图片</label>
            </div>
            <div class="add-img ho">
                <ul>
                    <li>
                        <a href="##"><img src="images/details/details01.jpg" class="img"/></a>
                        <img class="img-del" src="images/icon_del.png"/>
                    </li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                    <li><a href="##"><img src="images/personalCenter/add-img.png" class="img"/></a></li>
                </ul>
            </div>
        </div>
        <div class="content-login ho">
            <div class="input-label bor-b">
                <label for="title">商品标题</label>
                <input type="text" id="title" placeholder="请输入商品标题" />
            </div>
            <div class="input-label bor-b">
                <label for="price">商品价格</label>
                <input type="text" id="price" placeholder="请输入商品价格" />
            </div>
            <div class="input-label">
                <label for="stock">商品库存</label>
                <input type="text" id="stock" placeholder="请输入商品库存" />
            </div>
        </div>
        <div class="content-login ho">
            <div class="input-label bor-b">
                <label>商品描述</label>
            </div>
            <!--<textarea class="goods-text" placeholder="请输入商品描述"></textarea>-->
            <p class="goods-text" contenteditable="true">请输入商品描述</p>
        </div>
        <div class="month-bill-list ho">
            <div class="list bor-b ho">
                <div class="tt">
                    <span class="f-l">分类至</span>
                    <i class="fa fa-angle-down f-r"></i>
                    <span class="selected f-r">未分类</span>
                </div>
                <div class="sort-list ho">
                    <ul>
                        <li>
                            <input class="sid" type="checkbox" Hover id="sid01">
                            <label for="sid01">食品</label>
                        </li>
                        <li>
                            <input class="sid" type="checkbox" id="sid02">
                            <label for="sid02">水果</label>
                        </li>
                        <li>
                            <input class="sid" type="checkbox" id="sid03">
                            <label for="sid03">特产</label>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="content-login ho">
            <div class="input-label bor-b">
                <label for="title">运&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;费</label>
                <input type="text" id="title" placeholder="请输入运费金额" />
            </div>
            <div class="input-label bor-b">
                <label for="price">销&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;量</label>
                <input type="text" id="price" placeholder="可以设置商品销量信息" />
            </div>
            <div class="input-label">
                <label for="stock">地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</label>
                <input type="text" id="stock" placeholder="请输入商品所在地区" />
            </div>
        </div>
    </div>

    <script>
        $(function () {
            /*icheck组件*/
            $('.sid').iCheck({
                checkboxClass: 'icheckbox_flat-blue',
                radioClass: 'iradio_flat-blue'
            });
            /*展开信息*/
            $('.month-bill-list .list .tt').click( function () {
                if ($(this).hasClass('select')) {
                    $(this).removeClass('select');
                    $(this).parent().find('.sort-list').slideUp("slow", "linear");
                } else {
                    $('.month-bill-list .list .tt').removeClass('select');
                    $('.month-bill-list .list .sort-list').slideUp("slow", "linear");
                    $(this).addClass('select');
                    $(this).parent().find('.sort-list').slideDown("slow", "linear");
                }
            });
        });
    </script>
</body>
</html>